package org.jetnuke.dao.hsqldb;

import net.jforum.dao.hsqldb.HsqldbDataAccessDriver;

import org.jetnuke.dao.BlogPostDAO;
import org.jetnuke.dao.DownloadDownloadDAO;
import org.jetnuke.dao.LinkLinkDAO;
import org.jetnuke.dao.PictureDAO;
import org.jetnuke.dao.StoriesDAO;

public class DataAccessDriver extends
		org.jetnuke.dao.postgresql.DataAccessDriver {

	private static StoriesDAO storiesModel = new HsqldbStoriesDAO();
	private static BlogPostDAO blogPostModel = new HsqldbBlogPostDAO();
	private static LinkLinkDAO linkLinkModel = new HsqldbLinkLinkDAO();
	private static DownloadDownloadDAO downloadDownloadModel = new HsqldbDownloadDownloadDAO();
	private static PictureDAO pictureModel = new HsqldbPictureDAO();

	static {
		delegate = new HsqldbDataAccessDriver();
	}

	public BlogPostDAO newBlogPostDAO() {
		return blogPostModel;
	}

	public PictureDAO newPictureDAO() {
		return pictureModel;
	}

	public DownloadDownloadDAO newDownloadDownloadDAO() {
		return downloadDownloadModel;
	}

	public LinkLinkDAO newLinkLinkDAO() {
		return linkLinkModel;
	}

	public StoriesDAO newStoriesDAO() {
		return storiesModel;
	}

}
